<?php
class Article_Model_Articlelist {
	
	private $artcilesData;
	
	public function __construct(){
		$this->artcilesData = new Article_Data_Articlelist;
	}
	
	public function getArticleList(array $getVars){
		if(isset($getVars['category'])){
			$article = $this->artcilesData->getArticlesList($category);
		}
		else {
			$article = $this->artcilesData->getArticlesListNoCategory();
		}
		return $article;
	}
	
}